package cn.fyl.system.mapper;

import cn.fyl.basic.mapper.BaseMapper;

import cn.fyl.system.domain.Role;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {

    void removeRolePermissionByRoldId(Long id);

    void removeRoleMenuByRoldId(Long id);

    void saveRoleMenu(@Param("rid")Long id, @Param("menus")List<Long> menus);

    void saveRolePermission(@Param("rid")Long id,@Param("permissions")List<Long> permissions);
}
